Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@patternfly/pfe-button
Advanced tools
<pfe-button>
is a web component wrapper around a standard HTML <button>
element.
<pfe-button>
is heavily influenced by the findings in this post: Custom
elements, shadow DOM and implicit form submission. You can expect <pfe-button>
to work like a normal HTMLButtonElement
.
Read more about Button in the PatternFly Elements Button documentation
Load <pfe-button>
via CDN:
<script src="https://unpkg.com/@patternfly/pfe-button?module"></script>
Or, if you are using NPM, install it
npm install @patternfly/pfe-button
Then once installed, import it to your application:
import '@patternfly/pfe-button';
When using this component, you must provide a standard HTML Button Elements as
the only light DOM child of pfe-button
.
<pfe-button>My Button</pfe-button>
<pfe-button>
addresses the issues associated with typical implementations of
web component buttons. When using a <pfe-button>
in a <form>
element, the
<pfe-button>
will function as a standard button in a <form>
. You can expect
the button to submit the form.
Adding the disabled
attribute to either the <pfe-button>
wrapper or the
<button>
element in the light DOM will disable the button.
<pfe-button disabled>Submit</pfe-button>
Using the type
attribute works in the same fashion as the disabled
attribute. You can add a type
attribute to the <pfe-button>
element.
<pfe-button type="button">Submit</pfe-button>
<pfe-button type="submit">Submit</pfe-button>
<pfe-button type="reset">Reset</pfe-button>
FAQs
Button element for PatternFly Elements
The npm package @patternfly/pfe-button receives a total of 219 weekly downloads. As such, @patternfly/pfe-button popularity was classified as not popular.
We found that @patternfly/pfe-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.